/*
 * licenses
 * 
 */

package com.openjawtech.xscraper.flights;

import java.io.File;
import java.io.InputStream;
import java.net.URL;
import javax.xml.stream.XMLStreamReader;
import com.openjawtech.xscraper.schema.FlightsType;

/**
 * <p>this interface is used to persist the flights information
 *
 * <p>18/02/2009
 * @author Wenbo.Sun
 */
public interface PersistService {

    public void persist(File file);

    public void persist(URL url);
    
    public void persist(InputStream stream);

    public void persist(XMLStreamReader reader);

    public void persist(FlightsType flights);

    public boolean removeFlights(FlightsType flights);

    public boolean removeAirport(String name);

    public boolean updateAirportName(String oldName, String newName);

}
